'Declaration
Public Overloads Shared Sub WriteMessage( _ ByVal severity As LogMessageSeverity, _ ByVal writeMode As LogWriteMode, _ ByVal skipFrames As Integer, _ ByVal exception As Exception, _ ByVal attributeToException As Boolean, _ ByVal detailsXml As String, _ ByVal caption As String, _ ByVal description As String, _ ByVal ParamArray args() As Object _ )
public static void WriteMessage( LogMessageSeverity severity, LogWriteMode writeMode, int skipFrames, Exception exception, bool attributeToException, string detailsXml, string caption, string description, params object[] args )
Parameters
- severity
- The log message severity.
- writeMode
- Whether to queue-and-return or wait-for-commit.
- skipFrames
- The number of stack frames to skip back over to determine the original caller.
- exception
- An Exception object to attach to this log message.
- attributeToException
- True if the call stack from where the exception was thrown should be used for log message attribution
- detailsXml
- Optional. An XML document with extended details about the message. Can be null.
- caption
- A single line display caption.
- description
- Optional. A multi-line description to use which can be a format string for the arguments. Can be null.
- args
- Optional. A variable number of arguments to insert into the formatted description string.